FROM openjdk:17
COPY ./logs /home/app/logs
ADD wx-push-0.0.1-SNAPSHOT.jar /home/app/wx-push-0.0.1-SNAPSHOT.jar
ENV JAVA_OPTS="-ms512m -mx512m -Xmn256m -Djava.awt.headless=true -Duser.timezone=\"Asia\/Shanghai\""
#调整时区
RUN export TZ="Asia/Shanghai"
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["sh","-c","exec java $JAVA_OPTS -jar /home/app/wx-push-0.0.1-SNAPSHOT.jar"]
